import service from '@/utils/request'

const BusinessVillageApi = {
  listBusinessVillage:function(data){
    return service.get('businessVillage/page', {params:data})
  },
  addBusinessVillage:function(data){
      return service.post('businessVillage', data)
  },
  editBusinessVillage:function(data){
      return service.put('businessVillage', data)
  },
  updateBusinessVillage:function(data){
    return service.put('businessVillage/updateBusinessVillage', data)
  },
  updateVillageAndGoods:function(data){
    return service.put('businessVillage/updateVillageAndGoods', data)
  },
  deleteBusinessVillage:function(data){
      return service.put('businessVillage/delete', data)
  },
  deleteVillageAndGoods:function(data){
    return service.put('businessVillage/deleteVillageAndGoods', data)
  },
  getBusinessVillageInfo(data){
    return service.get('businessVillage', {params:data})
  },
  listVillageAndGoods(data){
    return service.get('businessVillage/listVillageAndGoods', {params:data})
  },
  listIdName(data){
    return service.get('businessVillage/listIdName', {params:data})
  },
  listByBusinessId(data){
    return service.get('businessVillage/listByBusinessId', {params:data})
  },
}

export default BusinessVillageApi
